﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Module.Stat.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/module/stat/style/StatMain.css" />
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript" src="/cellula_client/module/stat/scripts/FusionCharts.js"></script>
    <script type="text/javascript" src="/cellula_client/module/stat/scripts/StatBiz.js"></script>
    <script type="text/javascript">
        var jStatBiz = new StatBiz("jStatBiz");
        jStatBiz.setChartPlayerId("ChartPlayer");
        jStatBiz.setChartFileName("<%=ChartFileName %>");
        jStatBiz.setStatKey("<%=StatKey %>");
        jStatBiz.setFormBoxId("stat_FormBox");
        jStatBiz.setGridBoxId("stat_GridBox");
        jStatBiz.setChartId("myChartId");
        function PageOnLoad() {
            jStatBiz.onPageLoad();
        }
        function openChartBox(sender, e) {
            var box = $("#ChartPlayer");
            if(box.style.display=="none"){
                box.style.display = "";
                sender.value = unescape("%u25B2") + " 收起统计图";
            }else{
                box.style.display = "none";
                sender.value = unescape("%u25Bc") + " 展开统计图";
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    <asp:Label runat="server" ID="lab_StatName"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <asp:HiddenField runat="server" ID="hid_StatKey" />
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top">
    <fieldset style="width:220px">
        <legend>选择统计方式</legend>
        <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="false" CssClass="GridViewTiny"
            DataKeyNames="StatKey" ShowHeader="false" ShowFooter="false">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href='Admin/Module/Stat/Default.aspx?id=<%# DataBinder.Eval(Container, "DataItem.StatKey")%>'>● <%# DataBinder.Eval(Container, "DataItem.StatName")%></a>
                    </ItemTemplate>
                    <ItemStyle />
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="GridViewRowTiny" />
            <AlternatingRowStyle CssClass="GirdViewAlternatingRowTiny" />
            <EmptyDataRowStyle CssClass="GridViewEmptyDataRowTiny" />
            <EmptyDataTemplate>
                没有可用的数据</EmptyDataTemplate>
        </asp:GridView>
    </fieldset>
            </td>
            <td>&nbsp;</td>
            <td valign="top">
    <fieldset style="width:730px">
        <legend>统计参数</legend>
        <div id="stat_FormBox"></div>
    </fieldset>
    <fieldset style="width:730px">
        <legend>图表</legend>
        <div class="chart_action_bar">
            <input type="button" onclick="openChartBox(this,event)" onfocus="this.blur()" value="&#9650; 收起统计图" />
        </div>
        <div id="ChartPlayer" align="center"></div>
        <div id="stat_GridBox"></div>
    </fieldset>
            </td>
        </tr>
    </table>
 </asp:Content>
